package com.weiyuwqj.admin.controller.admin.user;

import com.weiyuwqj.api.service.BasUserSecurityService;
import com.weiyuwqj.api.common.Paginator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangyong on 2016/8/12.
 */
@Controller
@RequestMapping("/admin/userSecurity")
public class UserSecurityController {

    @Autowired
    BasUserSecurityService userSecurityService;

    @ResponseBody
    @RequestMapping("/list")
    public Object getList(Paginator p,String realname,String username){
        Map map=new HashMap();
        map.put("realname",realname);
        map.put("username",username);
        return userSecurityService.getList(p,map);
    }
}
